package com.engine4cloud.tdf.education.dto.query;

import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotBlank;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;

/**
 * 学员
 *
 * @author wenjie
 * @date 2024-07-30 14:59:31
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@Schema(description = "学员")
public class EduStudentQueryDTO implements Serializable {


    /**
     * 主键
     */
    @Schema(description = "主键")
    private Long id;

    /**
     * 所属学组编号
     */
    @Schema(description = "所属学组编号")
    @NotBlank(message = "学组编号不能为空")
    private String groupCode;

    /**
     * 学员编号
     */
    @Schema(description = "学员编号")
    private String code;

    /**
     * 学生姓名
     */
    @Schema(description = "学生姓名")
    private String name;

    public EduStudentQueryDTO(String groupCode) {
        this.groupCode = groupCode;
    }

}